// app.js
App({
  globalData: {
    statusBarHeight: null
  },
  onLaunch() {
    const res = wx.getSystemInfoSync()
    const statusBarHeight = res.statusBarHeight
    this.globalData.statusBarHeight = statusBarHeight
  }
})
